﻿package com.d4p.util
{
	public class ZeroStringUtil
	{
		static private var _zeroInstance:ZeroStringUtil;
		
		public function ZeroStringUtil(singletonEnforcer:SingletonEnforcer){}
		public static function getZeroInstance():ZeroStringUtil
		{
			if(ZeroStringUtil._zeroInstance == null){
				ZeroStringUtil._zeroInstance = new ZeroStringUtil(new SingletonEnforcer());	
			}
			return ZeroStringUtil._zeroInstance;
		}
		
		public function digit( $value:uint ):String
		{
			if( $value<10 )
			{
				return "0" + String($value);
			}else{
				return String($value);
			}
		}
		

	}
}
class SingletonEnforcer{}